import Vue from 'vue'
import Router from 'vue-router'
import HomePage from '@/components/HomePage'// 路由懒加载时，这里不要

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HomePage',
      component: HomePage
      // component: resolve => require(['@/components/HomePage'],resolve)路由懒加载
    },
  ]
})
